home *** CD-ROM | disk | FTP | other *** search
- Path: islay.ssl.berkeley.edu!korpela
- From: korpela@islay.ssl.berkeley.edu (Eric J. Korpela)
- Newsgroups: comp.std.c
- Subject: Re: Nested MACROS ??
- Date: 29 Mar 1996 19:38:06 GMT
- Organization: Cal Berkeley-- Space Sciences Lab
- Message-ID: <4jhe6u$555@agate.berkeley.edu>
- References: <4jgkno$mrr@aplinfo.jhuapl.edu>
- NNTP-Posting-Host: islay.ssl.berkeley.edu
-
- In article <4jgkno$mrr@aplinfo.jhuapl.edu>,
- Stan Novinsky <stan_novinsky@jhuapl.edu> wrote:
- >I am using a nested MACRO. The problem is that only the
- >inner part is execur
- >
- >Given the following MACRO definitions and code,
- >
- > #define CUBE(X) ((x * x) * x)
- > #define ABS(X) ((x < 0) ? -(x) : (x))
- >
- > #define NEST(X) (ABS(CUBE(X)))
-
- The C preprocessor is case sensitive. Look carefully at your code.
-
- Eric
- --
- Eric Korpela | An object at rest can never be
- korpela@ssl.berkeley.edu | stopped.
- <a href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w">
- Click here for more info.</a>
-